package com.yc.services;

import com.yc.DTO.DiaryDTO;
import com.yc.web.controller.model.ResponseResult;

public interface DiaryService {
    ResponseResult createDiary(DiaryDTO diaryDTO);
    ResponseResult updateDiary(DiaryDTO diaryDTO);
    ResponseResult deleteDiary(Long diaryId, Long userId);
    ResponseResult getDiaryList(Long userId, Integer pageNum, Integer pageSize);
    ResponseResult getDiaryDetail(Long diaryId, Long userId);
    // 在 DiaryService 接口中添加方法声明
    ResponseResult searchDiaryByTitle(Long userId, String title, Integer pageNum, Integer pageSize);
}